﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:view="clr-namespace:FormCreator.View"
                    xmlns:viewModel="clr-namespace:FormCreator.ViewModel"
                    xmlns:model="clr-namespace:FormCreator.Model">
    <DataTemplate DataType="{x:Type viewModel:PropertyValueItem}">
        <view:PropertyValueItem/>
    </DataTemplate>
    <DataTemplate DataType="{x:Type viewModel:ElementPropertiesViewModel}">        
        <view:ElementProperties/>
    </DataTemplate>
    <DataTemplate DataType="{x:Type model:StringElementValue}">
        <TextBox Text="{Binding Value, Mode=TwoWay}" MinWidth="200" VerticalAlignment="Center"/>
    </DataTemplate>
    <DataTemplate DataType="{x:Type model:BoolElementValue}">
        <CheckBox IsChecked="{Binding Value, Mode=TwoWay}" VerticalAlignment="Center"/>
    </DataTemplate>
</ResourceDictionary>